USE [CMS]
GO

/****** Object:  Table [dbo].[Pages]    Script Date: 12/29/2012 22:26:05 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Pages](
	[ADM_ID] [bigint] NOT NULL,
	[PAG_ID] [bigint] IDENTITY(1,1) NOT NULL,
	[PAG_CONTENT] [varchar](max) NULL,
	[PAG_KEYWORDS] [varchar](max) NULL,
	[PAG_METATAGS] [varchar](max) NULL,
	[PAG_TITLE] [varchar](150) NULL,
	[PAG_VISIBLE] [bit] NOT NULL,
	[PAG_DATE] [date] NULL,
	[MUT_DELETED] [datetime] NULL,
 CONSTRAINT [PK_Pages] PRIMARY KEY CLUSTERED 
(
	[PAG_ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[Pages]  WITH CHECK ADD  CONSTRAINT [FK_Pages_Administration] FOREIGN KEY([ADM_ID])
REFERENCES [dbo].[Administration] ([ADM_ID])
GO

ALTER TABLE [dbo].[Pages] CHECK CONSTRAINT [FK_Pages_Administration]
GO


